import { getlink } from "@/api/getapi.js"
export let allorder = {
    state: {
        all: []
    },
    mutations: {
        axiosorder(state, payload) {
            state.all = payload.data.allorder
        }
    },
    actions: {
        axiosall(context, payload) {
            getlink(payload.url).then((ok) => {
                // console.log(ok)
                context.commit("axiosorder", ok)
            })
        }
    }
}